<template>

  <a-menu v-model:selectedKeys="current" mode="horizontal">
    <a-menu-item key="mail">
      <template #icon>
        <mail-outlined/>
      </template>
      <router-link to="/about"/>
      首页
    </a-menu-item>
    <a-menu-item key="book">
      <template #icon>
        <mail-outlined/>
      </template>
      <router-link to="/book"/>
      暑假
    </a-menu-item>
    <a-sub-menu>
      <template #icon>
        <setting-outlined/>
      </template>
      <template #title>下拉</template>
      <a-menu-item-group title="Item 1">
        <a-menu-item key="setting:1">Option 1</a-menu-item>
        <a-menu-item key="setting:2">Option 2</a-menu-item>
      </a-menu-item-group>
      <a-menu-item-group title="Item 2">
        <a-menu-item key="setting:3">Option 3</a-menu-item>
        <a-menu-item key="setting:4">Option 4</a-menu-item>
      </a-menu-item-group>
    </a-sub-menu>
    <a-menu-item key="alipay">
      <router-link to="http://localhost:8090/v1/api">
        测试
      </router-link>
        home
    </a-menu-item>
  </a-menu>
  <router-view/>
</template>

<script>
import {defineComponent, ref} from 'vue';
import {AppstoreOutlined, MailOutlined, SettingOutlined} from '@ant-design/icons-vue';

export default defineComponent({
  name: "DaoHang",
  components: {

    MailOutlined,
    AppstoreOutlined,
    SettingOutlined,
  },
  setup() {
    const current = ref(['mail']);
    return {
      current,
    };
  },

});
</script>

<style>

</style>